package com.woniuxy.userassembly.service.impl;

import com.woniuxy.userassembly.model.UserGrade;
import com.woniuxy.userassembly.dao.UserGradeMapper;
import com.woniuxy.userassembly.service.IUserGradeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Liyfi
 * @since 2021-05-26
 */
@Service
public class UserGradeServiceImpl extends ServiceImpl<UserGradeMapper, UserGrade> implements IUserGradeService {
    @Autowired
    private UserGradeMapper mapper;

    @Override
    public int selectLevel(Integer credit) {
        int i = mapper.selectLevel(credit);
        return i;
    }
}
